import http from "@/network/http";
import { BusinessType } from "@/api/moduleConfig";
// 列表
export const getListApi = (data: ReceivingList.SearchParams) => {
  return http({
    method: "post",
    url: `${BusinessType.base}/biz/bizPreOrder/receiptManagementByPageDriveClient`,
    data,
  });
};
export const callHelpApi = (data: { id: string; callHelpReason: string }) => {
  return http({
    method: "post",
    url: `${BusinessType.base}/biz/bizPreOrder/callHelp`,
    data,
  });
};
// 分配司机
export const assignedDriverApi = (data: {
  id: string;
  driverUserId: string;
  driverUserName: string;
}) => {
  return http({
    method: "post",
    url: `${BusinessType.base}/biz/preOrderShipmentBox/confirmReceivedGood`,
    data,
  });
};
